<?php


namespace App\Admin\Controllers;


use App\Models\UsersModel;

class UserController extends Controller
{
    public function list()
    {
        $users = UsersModel::query()->limit(10)->offset(0)->get();

        if (empty($users)) {
            return $this->success();
        }

        return $this->success($users->toArray());
    }
}
